<?php
$sql = "SELECT * FROM #__support ORDER BY id ASC";
$database->setQuery($sql);
$lsSupport = $database->loadObjectList();
if (count($lsSupport)>0){ 
?>
<div style="background:url(<?php echo $mosConfig_live_site;?>/templates/dogolangchang/images/titlesupportonline.jpg) no-repeat right 20px; width:238px; height:95px; margin-bottom:5px; position:relative; margin-left:5px; padding-top:20px;">
	<div style="height:22px; position:absolute; bottom:0px; text-align:right; padding-right:5px; color:#FFF; right:0px;"><strong>Hỗ trợ online</strong></div>
</div>
<div style="width:238px;">
	<table style="margin-left: 5px;" border="0" width="100%" cellpadding="5">
		<tbody>
			<?php
			for ($i=0; $i<count($lsSupport); $i++){ 
			?>
			<tr>
				<td style="color: rgb(255, 255, 255);"><strong><?php echo $lsSupport[$i]->name;?>:</strong></td>
				<td width="95"><a href="ymsgr:sendIM?<?php echo $lsSupport[$i]->yahoo;?>"><img src="http://opi.yahoo.com/online?u=<?php echo $lsSupport[$i]->yahoo;?>&amp;m=g&amp;t=1" border="0" width="90" height="22"></a></td>
			</tr>
			<?php 
			}
			?>
		</tbody>
	</table>
	<div style="width:241px; height:15px;"></div>
	<div style="clear:both"></div>
</div>
<?php 
}
?>
